<include file="Public:header" />
<link type="text/css" href="__CSS__/house_news.css" rel="stylesheet" />
<div class="main">
<include file="House:nav" />
    <div class="main_center">
        <div class="main_center_left">
            <div class="left_title">{$house.title} 在线问答</div>
            <div class="ask_list_r01">
                <p><input style="width: 680px;" type="text" value="请输入标题" id="askTitle" class="inp07"></p>
                <p><textarea  style="width: 680px;" id="askInfo" class="inp08">请在这输入问题详细内容描述</textarea></p>
                <p class="overflow_h"><span class="adl_list_sp1">
                  <select class="select03" name="select" id="askCateId">
                      <option value="0">--请选择分类--</option>
                      <volist name='ask_cate' id='val'>
                          <option value="{$val.id}">{$val.html}{$val.name}</option>
                      </volist>
                  </select>
                <input type="hidden" id="house_id" value="{$house.id}">
            </span>
            <span class="adl_list_sp2" style="float: left;margin-left: 11px;"><a class="but35"  href="javascript:;" id="askBut">提交问题</a></span></p>
            </div>
            <ul class="center_quanbu_left">
                <volist name='list' id='vo'>
                <li class="center_zxdt">
                    <span>{$vo.add_time|date='Y-m-d',###}</span><em class="daogou">问</em><a class="center_zxdt_title" target="_blank" title="{$vo.title}" href="{:U('Ask/detail',array('id'=>$vo['id']))}">{$vo.title}</a>
                    <p>
                        <php>if($vo['answer']){</php>
                        <em class="huida">答</em>{:getAnswerOne($vo['answer'])}
                        <php>}else{</php>
                        <em class="huida">详细</em>{$vo.info}
                        <php>}</php>
                        <a class="ckxq_01" target="_blank" href="{:U('Ask/detail',array('id'=>$vo['id']))}">【查看详情】</a></p>
                </li>
                </volist>
            </ul>
            <div class="plastic_bottom_pages">
                {$page}
            </div>
        </div>
        <div class="main_center_right">
            <include file="House:right" />
        </div>
    </div>
    <script type="text/javascript" src="__JS__/jquery.js"></script>
    <script type="text/javascript" src="__JS__/layer/layer.js"></script>
    <script type="text/javascript" src="__JS__/public.js"></script>
    <script type="text/javascript">
        $("#askTitle").fangCmsText();
        $("#askInfo").fangCmsText();
        $("#textarea").fangCmsText();
        $("#askBut").click(function(){
            var url = "{:U('Ajax/addAsk')}";
            ask_add(url);
        });
    </script>
<include file="Public:footer" />